<?php  


//扫描出所有的图片地址
$path = './images';
$img = glob($path.'/*');

//文件大小单位转换
include './func.php';

//限制上传文件大小
$_FILES;
if($_FILES['myfile']['size']<30000){
	echo "允许上传";
}else{
	echo "文件太大,禁止上传";
}

//限制上传文件类型
//$allowType = ['jpg','png','gif','txt','php'];


//把文件移到固定位置保存
//move_uploaded_file($_FILES['myfile']['tmp_name'],'./images');






















?>